package com.paradise.sharding.eth.entity;

import java.math.BigDecimal;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import java.io.Serializable;

/**
 * <p>
 * ETH区块交易表
 * </p>
 *
 * @author Paradise
 * @since 2021-07-15
 */
@TableName("t_eth_transaction_token")
public class EthTransactionToken implements Serializable {

    private static final long serialVersionUID = 1L;

    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    /**
     * 交易Hash
     */
    private String hash;

    /**
     * 区块高度
     */
    private Long blockNumber;

    /**
     * 来源地址
     */
    private String from;

    /**
     * 目标地址
     */
    private String to;

    /**
     * 交易代币数量
     */
    private BigDecimal value;

    /**
     * 交易ETH数量
     */
    private BigDecimal ethValue;

    /**
     * 代币ID
     */
    private Long tokenId;


    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public String getHash() {
        return hash;
    }

    public void setHash(String hash) {
        this.hash = hash;
    }

    public Long getBlockNumber() {
        return blockNumber;
    }

    public void setBlockNumber(Long blockNumber) {
        this.blockNumber = blockNumber;
    }

    public String getFrom() {
        return from;
    }

    public void setFrom(String from) {
        this.from = from;
    }

    public String getTo() {
        return to;
    }

    public void setTo(String to) {
        this.to = to;
    }

    public BigDecimal getValue() {
        return value;
    }

    public void setValue(BigDecimal value) {
        this.value = value;
    }

    public BigDecimal getEthValue() {
        return ethValue;
    }

    public void setEthValue(BigDecimal ethValue) {
        this.ethValue = ethValue;
    }

    public Long getTokenId() {
        return tokenId;
    }

    public void setTokenId(Long tokenId) {
        this.tokenId = tokenId;
    }

    @Override
    public String toString() {
        return "EthTransactionToken{" +
        "id=" + id +
        ", hash=" + hash +
        ", blockNumber=" + blockNumber +
        ", from=" + from +
        ", to=" + to +
        ", value=" + value +
        ", ethValue=" + ethValue +
        ", tokenId=" + tokenId +
        "}";
    }
}
